package seeqpod;

import java.net.URL;

public class URLCheckThread extends Thread {
    private boolean status;
    private URL url;
    private String address;
    
    public URLCheckThread(URL Url){
        url = Url;
    }
    public URLCheckThread(String hyperlink){
        address = hyperlink;
    }
    public boolean getStatus(){
        return status;
    }
    
    @Override
    public void run(){
        InOut io = new InOut();
        if(url != null)
            status = io.urlisvalid(url);
        else
            status = io.urlisvalid(address);
    }    
}
